package com.hunt.model.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author ww
 * @className
 * @description
 * @date 2020/9/30
 */

@AllArgsConstructor
@NoArgsConstructor
@Data
@ToString
public class WeekMonthKLine {

    private String _id;
    private String code;
    private String week;
    private String dateTime;
    private float preClose;
    private float high;
    private float open;
    private float low;
    private float close;
    private String hlPercent;
    private String change;
    private long vol;
    private long money;

    public static String date2Week(int val){
        switch (val){
            case 1:
                return "周一";
            case 2:
                return "周二";
            case 3:
                return "周三";
            case 4:
                return "周四";
            case 5:
                return "周五";
            case 6:
                return "周六";
            case 7:
                return "周日";
            default:
                return "";
        }
    }
}
